Concurrency Control in database